﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="HandLab.Mvc3App.Aspx.Models.Entities" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <% List<CategoryInfo> categories = ViewData["Categories"] as List<CategoryInfo>;  %>
    <div>
        <h1>
            MVC公告发布系统</h1>
        <ul>
            <%foreach (CategoryInfo c in categories)
              {  %>
            <li>
                <%=Html.ActionLink(c.Name, "DoRelease/" + c.ID, "Announce")%></li>
            <%} %>
        </ul>
    </div>
</body>
</html>
